package com.china08.yxyapi.entity.db.meeting;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 直播课程
 * 
 * @author Richard.Wang
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_video_meeting", catalog = "yxy_yxy")
public class VideoMeeting extends BaseEntity {

    @Column(columnDefinition = "varchar(255) comment '创建人名称' ", nullable = false)
    private String createdByName;

    @Column(columnDefinition = "varchar(255) comment '学校id' ", nullable = false)
    private String schoolId;

    @Column(columnDefinition = "varchar(255) comment '学校名称' ", nullable = false)
    private String schoolName;

    @Column(columnDefinition = "varchar(255) comment '会议主题' ", nullable = false)
    private String title;

    @Column(columnDefinition = "datetime comment '开始时间' ", nullable = false)
    private Date startDate;

    @Column(columnDefinition = "datetime comment '结束时间' ", nullable = false)
    private Date endDate;

    @Column(columnDefinition = "varchar(255) comment '主讲人id' ", nullable = false)
    private String speakerId;

    @Column(columnDefinition = "varchar(255) comment '主讲人名称' ", nullable = false)
    private String speakerName;

    @Column(columnDefinition = "varchar(11) comment '手机号' ")
    private String speakerMobile;

    @Column(columnDefinition = "longtext comment '会议内容' ", nullable = false)
    private String intro;

    @Column(columnDefinition = "int(1) DEFAULT 0 COMMENT '状态:-1:取消,0:未开始,1:进行中,2:结束 ' ")
    private Integer status = 0;

    @Column(columnDefinition = "datetime comment '实际结束时间' ")
    private Date actualEndDate;

    @Column(columnDefinition = "text comment '会议取消原因' ")
    private String cause;

    @Column(columnDefinition = "text comment '实际参会人数' ")
    private Integer actualPeopleNum;

    @Column(unique = true, columnDefinition = "varchar(32) comment '房间ID,14位的数字' ")
    private String roomId;

    @Column(columnDefinition = "varchar(32) comment '管理员进入房间的参加码' ")
    private String adminCode;

    @Column(columnDefinition = "varchar(32) comment '老师进入房间的参加码' ")
    private String teacherCode;

    @Column(columnDefinition = "varchar(32) comment '学生公共参加码，该参加码可以进多个学生，不互踢' ")
    private String studentCode;

    @Column(columnDefinition = "varchar(32) comment '会议类型: 例会,大会,在线教研....' ")
    private String meetingLabel;

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getSpeakerId() {
        return speakerId;
    }

    public void setSpeakerId(String speakerId) {
        this.speakerId = speakerId;
    }

    public String getSpeakerName() {
        return speakerName;
    }

    public void setSpeakerName(String speakerName) {
        this.speakerName = speakerName;
    }

    public String getSpeakerMobile() {
        return speakerMobile;
    }

    public void setSpeakerMobile(String speakerMobile) {
        this.speakerMobile = speakerMobile;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getAdminCode() {
        return adminCode;
    }

    public void setAdminCode(String adminCode) {
        this.adminCode = adminCode;
    }

    public String getTeacherCode() {
        return teacherCode;
    }

    public void setTeacherCode(String teacherCode) {
        this.teacherCode = teacherCode;
    }

    public String getStudentCode() {
        return studentCode;
    }

    public void setStudentCode(String studentCode) {
        this.studentCode = studentCode;
    }

    /**
     * @return the cause
     */
    public String getCause() {
        return cause;
    }

    /**
     * @param cause
     *            the cause to set
     */
    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getMeetingLabel() {
        return meetingLabel;
    }

    public void setMeetingLabel(String meetingLabel) {
        this.meetingLabel = meetingLabel;
    }

    public Date getActualEndDate() {
        return actualEndDate;
    }

    public void setActualEndDate(Date actualEndDate) {
        this.actualEndDate = actualEndDate;
    }

    public Integer getActualPeopleNum() {
        return actualPeopleNum;
    }

    public void setActualPeopleNum(Integer actualPeopleNum) {
        this.actualPeopleNum = actualPeopleNum;
    }

}
